package com.shushan.home.bean;

import com.android.net.bean.NetBaseBean;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * @ClassName: BannerDataBean
 * @Desciption: //banner数据bean
 * @author: zhangshihao
 * @date: 2018-05-11
 */
public class BannerDataBean extends NetBaseBean {

    public int id;
    public String name;//跳转后页面title
    public int type;//0-跳转H5 1-跳转APP 2-跳转视频
    public String pic;//图片url
    public String url;
    public String android_name;
    public int practice_type;

    @Override
    public void initByJson(JSONObject jsonObject) throws JSONException {
        id = jsonObject.optInt("id",0);
        name = jsonObject.optString("name","");
        type = jsonObject.optInt("type",0);
        pic = jsonObject.optString("pic","");
        url = jsonObject.optString("url","");
        android_name = jsonObject.optString("android_name","");
        practice_type = jsonObject.optInt("practice_type",1);
    }
}
